package vn.wallet.app.service;

import java.util.List;

public interface _CommonInterface<T> {

	public T getById(int id) throws Exception;

	public void save(T obj) throws Exception;

	public void update(T obj) throws Exception;

	public void delete(T obj) throws Exception;

	public void delete(int id) throws Exception;

	public List<T> getAll() throws Exception;

	public List<T> getAllByUserId(int userId) throws Exception;

	public List<?> findByExample(T obj) throws Exception;
}
